class Coupons {
    couponsSelect(informationId,state){
        return new Promise((resolve, reject) => {
            $.ajax({
                url: "/www.xiaomi.com/coupons",
                method:"get",
                data:{
                    informationId:informationId,
                    state:state
                },
                success: function (response) {
                    resolve(response);
                },
                error: function (error) {
                    reject(error);
                }
            });
        });
    }
}